﻿using System;
using System.Collections.Generic;
using System.Data;

namespace CacheSharp.Core
{
    /// <summary>
    /// 表格读取接口
    /// </summary>
    interface ITableReader
    {
        bool ExistTable(string groupName, string tableName);
        bool ExistColumn(string groupName, string tableName, string colName);
        List<string> GetExistColumnNames(string groupName, string tableName);
        DateTime? GetTableExpireTime(string groupName, string tableName);
        DataTable GetTable(string groupName, string tableName);
        DataRow GetRow(string groupName, string tableName, string pkName, object pkValue);
        int GetRowNum(string groupName, string tableName);
        object GetValue(string groupName, string tableName, object pkValue, string destColName);
        object GetValue(string groupName, string tableName, string expression);
        DataTable PopTable(string groupName, string tableName);
    }
}
